﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>婚礼优品-${type}</title>
		<link rel="stylesheet" href="<%=path%>/css/grid.css" />
		<link rel="stylesheet" href="<%=path%>/css/style.css" />
		<link rel="stylesheet" href="<%=path%>/css/myspace.css" />
		<link rel="stylesheet" href="<%=path%>/css/index.css" />
		<script type="text/javascript"
			src="<%=path%>/scripts/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="<%=path%>/scripts/myspace.js"></script> 
		<script type="text/javascript">
	
$(document).ready( 
  function(){
	  var typeV = $("#type").val();
	// showImgDiv();
	 // if(typeV=="视频"){
	   showVideoDiv();}
      
   );
  //主页user与other 切换
 function  showVideoDiv(){
 $("#videoTable").attr("style","display:block");
 $("#imgTable").attr("style","display:none");
 }
  function  showImgDiv(){
 $("#videoTable").attr("style","display:none");
 $("#imgTable").attr("style","display:block");
 }
  </script type="text/javascript">
	</head>

	<body>
	   
	     <input id="type" name="type" type="hidden" value="${type}"/>
	    
		<!-- nav start -->
		<%-- <div class="nav">
		
                 <div class="container_12 ">
			<div class="grid_12">
				<%@include file="/WEB-INF/web/common/header.jsp" %>
			</div>
		
		</div>
   
    </div>
 
     --%>
    <%@include file="/WEB-INF/web/common/header.jsp" %>

		<!-- content start -->
		<div class="content">
			<div class="container_12">
				<div class="grid_3">
					<ul class="menu">
						<li>
							<div class="user-profile">
								<img class="head" src="${other.url }"/>
								<%--<ul class="info">
									<li><span class="label">用户名：</span>${other.othername }</li>
									<li><span class="label">职业：</span>${other.type }</li>
									<li><span class="label">访问量：</span>${other.visitTimes }</li>
								</ul>
							--%>
							</div>
						</li>
						<li <s:if test="%{messageIndex==1}">class="selected"</s:if>>
							<a hidefocus="ture" title="基本信息" href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=1"
								class="lNAText bC">Basic Information<br>基本信息</a>
						</li>
                                                 
						<li <s:if test="%{messageIndex==2}">class="selected"</s:if>>
							<a hidefocus="ture" title=">视频样片" href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=2"
								class="lNAText bC">Video Samples<br>视频样片</a>
						</li>
                                                
						<li <s:if test="%{messageIndex==3}">class="selected"</s:if>>
							<a hidefocus="ture" title="价格组成" href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=3"
								class="lNAText bC">Price Component<br>价格组成</a>
						</li>
                                               <!--
						<li <s:if test="%{messageIndex==4}">class="selected"</s:if>>
							<a hidefocus="ture" title="优品评价"
								href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=4" class="lNAText bC">Our Evaluation<br>优品评价</a>
						</li>
                                                -->
						<li <s:if test="%{messageIndex==5}">class="selected"</s:if>>
							<a hidefocus="ture" title="服务流程" href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=5"
								class="lNAText bC">Service Process<br>服务流程</a>
						</li>
						
						<li <s:if test="%{messageIndex==6}">class="selected"</s:if>>
							<a s="" hidefocus="ture" title="优品优势"
								href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=6" class="lNAText bC">Our Superiority<br>优品优势</a>
						</li>
						
						<li <s:if test="%{messageIndex==7}">class="selected"</s:if>>
							<a s="" hidefocus="ture" title="联系优品"
								href="<%=path %>/space/showOther?otherId=${param.otherId}&messageIndex=7" class="lNAText bC">Contact Us<br>联系优品</a>
						</li>
					</ul>

				</div>
				<div class="grid_9">
					<div class="right">
						<s:if test="%{(messageIndex==1 || messageIndex==0) && other.message1 != null}">
							<img src="<s:property value="other.message1"/>"/>
						</s:if>
						
						
						<s:if test="%{messageIndex==2 && other.message2 != null}">
						 <object id="videoTable"  style="dispaly:block" class="flashPlayer" width="718" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
                         <param value="<s:property value="other.message2"/>" name="movie"/>
                         <param value="playMovie=true&auto=1&adss=0&isAutoPlay=true&autoPlay=true" name="flashVars"/>
                         <param value="high" name="quality"/>
                         <embed width="718" height="450" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="<s:property value="other.message2"/>?isAutoPlay=true">
                          </object>
						</s:if>
						
						
						
						<s:if test="%{messageIndex==3 &&other.message3 != null}">
							<img src="<s:property value="other.message3"/>"/>
						</s:if>
						<s:if test="%{messageIndex==4 &&other.message4 != null}">
							<img src="<s:property value="other.message4"/>"/>
						</s:if>
						<s:if test="%{messageIndex==5 && other.message5!= null}">
							<img src="<s:property value="other.message5"/>"/>
						</s:if>
						<s:if test="%{messageIndex==6 && other.message6!= null}">
							<img src="<s:property value="other.message6"/>"/>
						</s:if>						
							<s:if test="%{messageIndex==7 && other.message7!= null}">
							<img src="<s:property value="other.message7"/>"/>
						</s:if>

					</div>
				</div>
				<div class="clear"></div>
				
				
		       <div class="clear"></div>
			</div>
		</div>
		<!-- content end -->

		<!-- footer start -->
		<div class="footer">
			<div class="container_12">
				<div class="grid_12">
				<!--  	<a hidefocus="ture" title="婚礼优品" href="<%=path %>/"><img
							alt="婚礼优品" src="<%=path %>/images/logo.jpg" class="logo"/> 
					</a>-->
				</div>
			</div>
		</div>
		<!-- footer end -->
	</body>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F08522dc4f17a9aa963ba74d5a1baa9f0' type='text/javascript'%3E%3C/script%3E"));
</script>

</html>
